package com.dubbo.service;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.dubbo.api.service.HelloServiceApi;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

@Service
public class ConsumerService {

    @NacosValue(value = "${demo.name:abd}", autoRefreshed = true)
    private String name;

    @Reference(check = false)
    public HelloServiceApi helloServiceApi;

    public String show(){
        return helloServiceApi.sayHello(name);
    }
}
